<?php
/**
 * @package                Joomla.Site
 * @subpackage	Templates.beez_20
 * @copyright        Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license                GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

// check modules
$showRightColumn        = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom                        = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft                        = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));

if ($showRightColumn==0 and $showleft==0) {
        $showno = 0;
}

JHtml::_('behavior.framework', true);

// get params
$color              = $this->params->get('templatecolor');
$logo               = $this->params->get('logo');
$navposition        = $this->params->get('navposition');
$app                = JFactory::getApplication();
$doc				= JFactory::getDocument();
$templateparams     = $app->getTemplate(true)->params;

$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/md_stylechanger.js', 'text/javascript', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/position.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/layout.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/vtq_layout.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/print.css" type="text/css" media="print" />
<?php
        $files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true);
        if ($files):
                if (!is_array($files)):
                        $files = array($files);
                endif;
                foreach($files as $file):
?>
<link rel="stylesheet" href="<?php echo $file;?>" type="text/css" />
<?php
                 endforeach;
        endif;
?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo htmlspecialchars($color); ?>.css" type="text/css" />
<?php			if ($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template_rtl.css" type="text/css" />
<?php				if (file_exists(JPATH_SITE . '/templates/beez_20/css/' . $color . '_rtl.css')) :?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo $color ?>_rtl.css" type="text/css" />
<?php				endif; ?>
<?php			endif; ?>
<!--[if lte IE 6]>
                <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />

                <?php if ($color=="personal") : ?>
                <style type="text/css">
                #line
                {      width:98% ;
                }
                .logoheader
                {
                        height:200px;

                }
                #header ul.menu
                {
                display:block !important;
                      width:98.2% ;


                }
                 </style>
                <?php endif;  ?>
                <![endif]-->
<!--[if IE 7]>
                        <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
                <![endif]-->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/hide.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/swfobject_modified.js"></script>

<!-- <script>
      
                        var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%';
                        var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%';
                        var altopen='<?php echo JText::_('TPL_BEEZ2_ALTOPEN', true); ?>';
                        var altclose='<?php echo JText::_('TPL_BEEZ2_ALTCLOSE', true); ?>';
                        var bildauf='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/plus.png';
                        var bildzu='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/minus.png';
                        var rightopen='<?php echo JText::_('TPL_BEEZ2_TEXTRIGHTOPEN', true); ?>';
                        var rightclose='<?php echo JText::_('TPL_BEEZ2_TEXTRIGHTCLOSE'); ?>';
                        var fontSizeTitle='<?php echo JText::_('TPL_BEEZ2_FONTSIZE'); ?>';
                        var bigger='<?php echo JText::_('TPL_BEEZ2_BIGGER'); ?>';
                        var reset='<?php echo JText::_('TPL_BEEZ2_RESET'); ?>';
                        var smaller='<?php echo JText::_('TPL_BEEZ2_SMALLER'); ?>';
                        var biggerTitle='<?php echo JText::_('TPL_BEEZ2_INCREASE_SIZE'); ?>';
                        var resetTitle='<?php echo JText::_('TPL_BEEZ2_REVERT_STYLES_TO_DEFAULT'); ?>';
                        var smallerTitle='<?php echo JText::_('TPL_BEEZ2_DECREASE_SIZE'); ?>';
                </script>
                -->

</head>
<body>
<div id="all">
  <div id="back">
    <div id="header"> 
      <!-- Top Menu -->
      <div id="vtq_PageContainer">
        <div id="vtq_header"> 
          <!-- images --> 
          <a href="http://www.nhahangthuyenbuom.com">
          <div class="logo"><img src=					"<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/logo.png"></div>
          </a> 
          
          <!-- top menus -->
          <div id="vtq_menu">
            <jdoc:include type="modules" name="position-1" />
          </div>
        </div>
      </div>
      <!-- Top Menu --> 
      
      <!-- bannerflash -->
       <?php if($_REQUEST['view']=='featured'){ ?>
      <div id="bannerflash">
        <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1005" height="481">
          <param name="movie" value="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/main_flash.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="7.0.70.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/expressInstall.swf" />
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> 
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/main_flash.swf" width="1005" height="481">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="7.0.70.0" />
            <param name="expressinstall" value="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/expressInstall.swf" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>
      </div>
      <?php } ?>
      <!-- End bannerflash --> 
      
      <!-- end line --> 
      
    </div>
    <!-- end header -->
    
    <div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
      
      <?php if ($navposition=='left' and $showleft) : ?>
      <div class="left1 <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav">
        <jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" />
        <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
        <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2"  id="3" />
      </div>
      <!-- end navi -->
      <?php endif; ?>
      <div id="<?php echo $showRightColumn ? 'wrapper' : 'wrapper2'; ?>" <?php if (isset($showno)){echo 'class="shownocolumns"';}?>>
        <div id="main">
        <?php if($_REQUEST['view']!='featured'){ ?>
      <div id="breadcrumbs">
        <jdoc:include type="modules" name="position-2" />
      </div>
      <?php } ?>
          <?php if ($this->countModules('position-12')): ?>
          <div id="top">
            <jdoc:include type="modules" name="position-12"   />
          </div>
          <?php endif; ?>
          <jdoc:include type="message" />
          <?php if($_REQUEST['view']!='featured'){ ?>
          <jdoc:include type="component" />
          <?php } ?>
        </div>
        <!-- end main --> 
        
      </div>
      <!-- end wrapper -->
      
      <div class="wrap"></div>
    </div>
    <!-- end contentarea --> 
    
  </div>
  <!-- back --> 
  <!-- all -->
  
  <div id="footer-outer">
    <ul class="subheadmenu">
      <a>
      <li class="mongon"></li>
      </a>
       <a href="http://www.nhahangthuyenbuom.com/cms/11.html">
      <li class="khuyenmai"></li>
      </a> 
      <a href="#">
      <li class="daochoi"></li>
      </a>
    </ul>
    <div style="clear:both;"></div>
    <div id="slidearticle">
      <jdoc:include type="modules" name="position-9" style="beezDivision" headerlevel="3" />
    </div>
  </div>
  <div style="clear:both;"></div>
  
</div>
<div id="bg-footer">
<div id="footer-sub">
    <div id="footer">
    <div id="footer-left"><jdoc:include type="modules" name="position-13" /></div>
     <div id="footer-right"> <jdoc:include type="modules" name="position-14" />
     <div id="power">Phát triển bởi <a href="#" style="border:none;">NganLy</a></div>
    
</div>
     
    </div>
    <!-- end footer --> 
    
  </div>
</div>
<jdoc:include type="modules" name="debug" />
<script type="text/javascript">
swfobject.registerObject("FlashID");
                </script>
</body>
</html>
